package com.navinfo.platform.sparksql.support;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * ResultSet提取结果对象的接口
 * @param <T>
 */
public interface ResultSetExtractor<T> {
	/**
	 * 通过RS提取结果对象T
	 * @param rs
	 * @return
	 * @throws SQLException
	 */
	T extractData(ResultSet rs) throws SQLException;
}
